import { IsNotEmpty, IsString,Length,IsOptional } from "class-validator"
import { Web_classify } from "../entities/web-classify";

export class WebLinkDto {
    @IsString({
        message: "标题不能为空"
    })
    @IsNotEmpty()
    @Length(1,30)
    title:string;

    @IsString() 
    link:string;
    
    @IsString() 
    describe:string;

    
}